//
//  ZheDishPictureViewController.m
//  Delicious
//
//  Created by gy on 16/5/6.
//  Copyright © 2016年 gy. All rights reserved.
//

#import "ZheDishPictureViewController.h"
#import "AppDelegate.h"
#import "UIViewController+RECurtainViewController.h"
@interface ZheDishPictureViewController ()

@end

@implementation ZheDishPictureViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    UIImageView *view = [[UIImageView alloc]init];
    view.frame = self.view.frame;
    view.image = [UIImage imageNamed:@"zhe.png"];
    [self.view addSubview:view];
    UITapGestureRecognizer *gesture = [[UITapGestureRecognizer alloc]init];
    [gesture addTarget:self action:@selector(gestureClick)];
    [self.view addGestureRecognizer:gesture];


}

- (void)gestureClick{
    AppDelegate *delegate = [UIApplication sharedApplication].delegate;
    
    UINavigationController *nagvc = [delegate.VCDic objectForKey:@"ZheDishViewController"];
    [self curtainRevealViewController:nagvc transitionStyle:RECurtainTransitionHorizontal];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
